{foreach from=$errors item="error_message" key="error"}
	<p class="error">
		{if $error == "PARAMETERS_MISSED"}
			[[The system cannot proceed as some key parameters are missing]]
		{elseif $error == "USER_NOT_FOUND"}
			[[No such user found]]
		{elseif $error == "INVALID_ACTIVATION_KEY"}
			[[Wrong activation key is specified]]
		{elseif $error == "CANNOT_ACTIVATE"}
			[[Cannot activate account. Please contact administrator.]]
		{else}
			[[$error]] [[$error_message]]
		{/if}
	</p>
{foreachelse}
	{if $activated}
		<p class="message">
			{if $approvalStatus == 'Pending'}
				[[Your account was successfully confirmed and will be activated after approval by Administrator. Thank you.]]
			{elseif $approvalStatus == 'Rejected'}
				[[Your account was rejected by Administrator and therefore can not be activated.]]
			{else}
				[[You account was successfully activated. Thank you. {if $isLoggedIn == 0}Please <a href="{$GLOBALS.user_site_url|cat:"/login/"}">login</a>.{/if}]]
			{/if}
		</p>
	{else}
		<p class="error">[[Cannot activate account. Please contact administrator.]]</p>
	{/if}
{/foreach}